<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 第一个实验 -->
    <script>//229971345周名霞
        Number()//将字符串转为数字型
        console.log(Number(true),Number(null),+undefined);
        
        Boolean()//转换为布尔型
        console.log(Boolean('100'),Boolean(100),Boolean(null),!!undefined);
        
        parseInt()//将字符串转为整数
        console.log(parseInt(123.6),parseInt(0b1011011),parseInt(0X2A),parseInt(0X2A,8));
        
        parseFloat()//将字符串转换为浮点数
        console.log(parseFloat('123.6'),parseFloat('100px'),parseFloat(010));
        
        eval()
        console.log(eval('87*99+2'));
        
        isNaN()
        console.log(isNaN(null),isNaN('123'),isNaN('abc'),isNaN('a1b2c3'));
    </script>    
</body>
</html>